/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package propres;
import java.io.Serializable;
/**
 *
 * @author Administrador
 */
public class precio implements Serializable{

    private int P_comida;
    
    private int P_dia;

    private int P_total;
 
    public  precio(int t,int p, int c){
    P_total=t;
    P_dia = p;
    P_comida=c;
    }
    public precio(){}
    
    public void Set_P_total(int t){
        P_total=t;
    }

    public void Set_P_dia(int p)
    {
        P_dia = p;
    }
    
    public void Set_P_comida(int p)
    {
        P_comida=p;
    }
    public int Get_P_comida()
    {
        return P_comida;
    }
    public int Get_P_dia()
    {
        return P_dia;
    }
    public int Get_P_total()
    {
        return P_total;
    }
    public int[] Consultar_precios()
    {
	int[] prec=new int[3];
	prec[0]=P_total;
	prec[1]=P_dia;
	prec[2]=P_comida;
        
	return prec;
	}
}

